'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const test = await this.ctx.model.User.findAll({
      // attributes: ['id', 'username', 'created_at']
    })
    this.ctx.body = test
  }
}

module.exports = HomeController;
